# coding=utf-8
import os

from alipay import AliPay

from backend.settings import BASE_DIR

alipay = AliPay(
    appid="2016081600254927",
    app_notify_url="http://127.0.0.1:8000/api/order/callback/",  # 默认回调url
    app_private_key_path=os.path.join(BASE_DIR, r'order\app_private_key.pem'),
    alipay_public_key_path=os.path.join(BASE_DIR, r'order\app_public_key.pem'),
    sign_type="RSA2",  # RSA 或者 RSA2
    debug=False  # 默认False
)
